package com.leen.controller;

import com.leen.common.vo.ResponseVO;
import com.leen.common.vo.ResultVO;
import com.leen.dto.AdminDTO;
import com.leen.dto.TeacherDTO;
import com.leen.service.AdminService;
import com.leen.service.TeacherService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类说明
 *
 * @author admin
 * @date 2021-04-21
 */
@RestController
@Api(tags = "教师API")
@RequestMapping(value = "/leen")
public class TeacherController {

    @Autowired
    private TeacherService teacherService;

    @ApiOperation(value = "查询数据")
    @GetMapping(value = "/teacher/data")
    public ResultVO<ResponseVO> search(TeacherDTO teacherDTO){
        return ResultVO.success( this.teacherService.search(teacherDTO));
    }
}
